/*
 * @Author: 张笑天
 * @Date: 2018-03-07 17:11:48
 * @Last Modified by: lyuan2018
 * @Last Modified time: 2019-12-06 09:15:55
 */
@preAvatarCls: wea-email-avatar;

.@{preAvatarCls} {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
  overflow: hidden;
  &>img {
    width: 40px;
    height: 40px;
  }
}

@preDropdownCls: wea-email-dropdown;

.@{preDropdownCls} {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 6px hsla(0,0%,39%,.2);
  border: 1px solid #d9d9d9;
  overflow: hidden;
  .wea-new-scroll {
    .clipper {
      .scroller {
        max-height: 259px;
      }
    }
  }
  &-menu {
    border-radius: 0;
    box-shadow: none;
    border: none;
    .@{preDropdownCls}-menu-item {
      &-line {
        border-bottom: 1px solid #d9d9d9;
      }
    }
  }
}

@preCollapseCls: wea-email-collapse;

.@{preCollapseCls} {
  &>.icon-coms-down2,
  &>.icon-coms-up2 {
    font-size: 14px;
    float: right;
    cursor: pointer;
    color: #b2b2b2;
    margin: 3px -18px 0 0;
  }
  .@{preCollapseCls}-content-wrap {
    overflow: hidden;
    // transition: height .2s ease-in-out;
    .@{preCollapseCls}-content {
      &-tag {
        display: inline-block;
        height: 20px;
        padding: 0 8px;
        // background-color: #d4e8fc;
        background-color: #f0f0f0;
        margin: 0 10px 5px 0;
        border-radius: 3px;
        position: relative;
        &>a {
          color: #4d7ad8;
          // color: #484a4d;
          >span {
            // color: #a8a8a8;
            // color: #4d7ad8;
            color: #484a4d;
          }
          &:hover,
          &:visited {
            color: #00a9ff;
            text-decoration: underline;
            >span {
              color: #00a9ff;
            }
          }
        }
        &>i {
          margin-left: 5px;
          &.icon-email-read {
            color: #a8a8a8;
          }
          &.icon-email-Unread {
            color: #67aff7;
          }
        }
      }
    }
  }
}

@preSwitchCls: wea-email-switch;

.@{preSwitchCls} {
  display: inline-block;
  position: relative;
  height: 30px;
  line-height: 30px;
  border-radius: 15px;
  min-width: 60px;
  border: 1px solid #d5d5d5;
  background-color: #fff;
  box-sizing: border-box;
  &-label {
    display: inline-block;
    padding: 0 20px 0 15px;
    opacity: 0;
    color: #999;
    height: 30px;
    transition: color .2s ease-in-out;
    cursor: pointer;
    &:first-child {
      padding: 0 15px 0 20px;
    }
    &-show {
      border-radius: 15px;
      opacity: 1;
    }
    &-checked {
      color: #fff;
    }
  }
  &-labels {
    position: absolute;
    top: -1px;
  }
  &-slide {
    position: absolute;
    top: -1px;
    height: 30px;
    padding: 0 20px;
    border-radius: 15px;
    color: transparent;
    background-color: #67aff7;
    transition: all .2s ease-in-out;
  }
}

@prePopoverCls: wea-email-popover;

.@{prePopoverCls} {
  &-todo {
    .ant-popover-title,
    .ant-popover-inner-content {
      height: inherit;
      max-width: 445px;
      padding: 0;
      overflow: hidden;
      &>div {
        // width: 390px;
      }
    }
    &-title {
      color: #333;
      padding: 8px 8px 8px 16px;
      line-height: 28px;
      i {
        font-size: 16px;
        &.icon-email-edit {
          color: #4d7ad8;
        }
        &.icon-email-complete {
          margin-right: 6px;
          vertical-align: text-bottom;
        }
        &.icon-email-edit {
          cursor: pointer;
          margin: 0 10px;
        }
      }
      // button.ant-btn{
      //   margin-left: 10px;
      // }
    }
    &-content {
      min-height: 120px;
      padding: 10px 20px 16px 16px;
      &>p {
        margin-bottom: 10px;
        color: #333;
      }
      &-show {
        padding-left: 76px;
        white-space: pre-wrap;
        word-break: break-all;
        &>span {
          float: left;
          margin-left: -76px;
          color: #979797;
        }
      }
      &-btn {
        &>span {
          color: #4d7ad8;
          cursor: pointer;
          i {
            color: #b2b2b2;
            font-size: 16px;
            vertical-align: text-bottom;
            margin-right: 8px;
          }
        }
      }
    }
  }
  &-account {
    .ant-popover-title,
    .ant-popover-inner-content {
      height: inherit;
      padding: 0;
      &>div {
        width: 100%;
      }
    }
    .ant-popover-title {
      width: 270px;
    }
    .ant-popover-inner-content {
      background-color: #f2f2f2;
    }
    .ant-popover-arrow {
      display: none;
    }
    &-title {
      height: 75px;
      padding: 16px;
      padding-left: 66px;
      &-avatar {
        float: left;
        margin-left: -50px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        vertical-align: middle;
      }
      &>img {
        float: left;
        margin-left: -50px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        vertical-align: middle;
      }
      &>p {
        color: #333;
        line-height: 1.6;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        &:last-child {
          color: #979797;
          padding-right: 44px;
          overflow: visible;
          &>span {
            display: inline-block;
            max-width: 100%;
            overflow: hidden;
            vertical-align: middle;
            text-overflow: ellipsis;
          }
          &>a {
            cursor: pointer;
            color: #333;
            text-decoration: underline;
            margin-left: 20px;
          }
        }
      }
    }
    &-content {
      border-radius: 0 0 7px 7px;
      background-color: #f2f2f2;
      line-height: 40px;
      &>span {
        display: inline-block;
        box-sizing: border-box;
        background-color: #f2f2f2;
        color: #333;
        text-align: center;
        cursor: pointer;
        border-right: 1px solid #e2e2e2;
        vertical-align: middle;
        &:nth-child(3) {
          border-right: 0;
          .icon-email-more {
            display: block;
            font-size: 18px;
            color: #bebebe;
          }
        }
      }
    }
  }
}

@preReadListCls: wea-email-read-list;

.@{preReadListCls} {
  &-dialog {
    .wea-dialog-body {
      &>div {
        height: 100%;
        .ant-spin-container {
          height: 100%;
        }
      }
    }
  }
  padding-right: 14px;
  background: #f4f4f4;
  &-table {
    height: calc(100% - 108px);
  }
  &-btn {
    padding: 14px;
    padding-right: 0;
    &>div {
      border: 1px solid #cbcbcb;
      background: #fff;
      padding: 10px 10px 16px 76px;
      cursor: pointer;
      &>i {
        line-height: 46px;
        font-size: 46px;
        float: left;
        margin-left: -56px;
        margin-top: 3px;
      }
      &>p {
        font-size: 24px;
        &:last-of-type {
          font-size: 12px;
          color: #333;
        }
      }
      &:hover {
        border-color: #3b89f7;
      }
    }
    &-selected {
      &>div {
        border-color: #3b89f7;
        box-shadow: 0 0 4px 0 #3b89f7;
      }
    }
  }
}

@preTodoCls: wea-email-todo;

.@{preTodoCls} {
  &-content {
    &-form {
      margin: 10px;
      &-title {
        height: 40px;
        line-height: 40px;
        padding-left: 12px;
        border-bottom: solid 1px #e2e2e2;
      }
      &-com {
        padding: 15px 30px;
        .wea-select {
          .ant-radio-group {
            width: 360px;
            .ant-radio-wrapper {
              width: 33%;
              margin-bottom: 16px;
              margin-right: 0;
            }
          }
        }
        &-1 {
          .wea-date-picker {
            margin-left: -50px !important;
            position: relative;
            top: -6px;
          }
        }
      }
    }
    &-bottom {
      height: 60px;
      line-height: 60px;
      border-top: 1px solid #e2e2e2;
      text-align: right;
      padding: 0 40px;
      & .wea-checkbox {
        float: left;
        margin-right: 8px;
      }
      &>button {
        margin-left: 16px;
      }
    }
  }
}

@prePopoverDepartment: email-popoverdepartment;
@preHrmlistCls : email-hrmlist;
.@{prePopoverDepartment} {
  .ant-popover-content .ant-popover-inner-content {
    padding: 0 !important;
  }
  .ant-popover-inner {
    border: none;
  }
  .@{preHrmlistCls} {
    // position: absolute;
    z-index: 101;
    background-color: #fff!important;
    border: 1px solid #19abec!important;
    max-height: 196px;
    width: 250px;
    -webkit-box-shadow: 0 0 4px #2db7f5;
    box-shadow: 0 0 4px #2db7f5;
    padding-bottom: 1px;
    font-size: 12px!important;
    .wea-new-scroll {
      position: relative;
      z-index: 1000;
      padding-bottom: 1px;
    }
    li {
      border-bottom: 1px solid #d2d2d2!important;
      padding: 5px 0;
      margin: 0 8px;
      color: #868686;
      span.name {
        display: inline-block;
        width: 80px;
        color: #222;
        cursor: pointer;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
      }
      span.jobtitle {
        padding-left: 10px;
        width: 150px;
      }
    }
  }
}

/*添加联系人组样式问题*/
.wea-email-new-cgroup-dialog {
	.wea-dialog-body {
		padding: 0 28px;
  }
  .wea-tag-group {
    max-height: 100px;
    overflow-y: auto;
  }
}

.email-todo-dialog {
  .ant-modal-footer .ext-link {
    float: left;
  }
  .email-form-formItem.waitdealnote {
    textarea {
      max-height: 70px;
      max-width: 390px;
    }
  }
}
